package net.helix.core;

import java.nio.FloatBuffer;

import org.lwjgl.BufferUtils;

/**
 * Normal class for use in a Mesh.
 * @author Runouw
 *
 */
public class Normal {
	private float x;
	private float y;
	private float z;
	//int count = 0;
	public Normal(float x, float y, float z){
		this.x = x;
		this.y = y;
		this.z = z;
	}
	/*
	FloatBuffer buff = null;
	public FloatBuffer getAsFloatBuffer(){
		if(buff == null){
			buff = BufferUtils.createFloatBuffer(4);
			buff.put(getX());
			buff.put(getY());
			buff.put(getZ());
			buff.put(1);
			buff.flip();
		}
		return buff;
	}
	*/
	public float getX() {
		return x;
	}
	public void setX(float x) {
		this.x = x;
	}
	public float getY() {
		return y;
	}
	public void setY(float y) {
		this.y = y;
	}
	public float getZ() {
		return z;
	}
	public void setZ(float z) {
		this.z = z;
	}
}
